flex.name = Flex ${QMAKE_FILE_IN}
flex.input = FLEXSOURCES
flex.output = ${QMAKE_FILE_BASE}.cpp
flex.commands = flex --nounistd --c++ --header-file=${QMAKE_FILE_BASE}.h --outfile=${QMAKE_FILE_BASE}.cpp ${QMAKE_FILE_IN}
flex.CONFIG += target_predeps
# flex.variable_out = GENERATED_SOURCES # dont' really matter but can help
silent:flex.commands = @echo Lex ${QMAKE_FILE_IN} && $$flex.commands
QMAKE_EXTRA_COMPILERS += flex